<template>
  <div class="loading-box2">
    <template v-if="emptyText && emptyText.indexOf('无') < 0">
      <i class="el-icon-loading"></i>
    </template>
    <template v-else>{{ emptyText }}</template>
  </div>
</template>

<script>
export default {
  props: {
    emptyText: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="scss" scoped>
.loading-box2 {
  position: relative;
  i {
    // font-weight: bold;
    color: inherit;
    // color: $color13;
  }
}
</style>
